﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MyImaginaryFriends_Redux.Animation
{
    public class AnimationClass
    {
        public Rectangle[] Rectangles;
        public Color Color;
        public Vector2 Origin;
        public float Rotation = 0.0f;
        public float Scale;
        public SpriteEffects SpriteEffect;
        public bool isLooping = true;
        public int Frames;

        public AnimationClass(Color color, float scale, SpriteEffects spriteEffects)
        {
            Color = color;
            Scale = scale;
            SpriteEffect = spriteEffects;
        }

        public AnimationClass Copy()
        {
            AnimationClass ac = new AnimationClass(Color, Scale, SpriteEffect);
            ac.Rectangles = Rectangles;
            ac.Color = Color;
            ac.Scale = Scale;
            ac.Origin = Origin;
            ac.SpriteEffect = SpriteEffect;
            ac.isLooping = isLooping;
            ac.Frames = Frames;

            return ac;

        }
    }
}
